<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
  <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %></h1>
<br/>
<form action="hello-servlet" method="get">
  <input type="text" name="get-data" value="123" required>
  <button type="submit" style="margin-top: 20px">GET请求</button>
</form>

<form action="hello-servlet" method="post">
  <input type="text" name="post-data" value="321" required>
  <button type="submit" style="margin-top: 20px">POST请求</button>
</form>
</body>
</html>